package tech.runchen.gz5055.oms.modules.system.mapper;

import tech.runchen.gz5055.oms.modules.system.entity.UserNoticeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 用户通知表 Mapper 接口
 * </p>
 *
 * @author zzj
 * @since 2023-11-13
 */
@Mapper
public interface UserNoticeMapper extends BaseMapper<UserNoticeEntity> {


    /**
     * 根据用户ID，获取通知ID列表
     *
     * @param userId
     * @return
     */
    List<Long> queryNoticeIdList(Long userId);


    /**
     * 根据通知ID数组，批量删除
     *
     * @param noticeIds
     * @return
     */
    int deleteBatch(Long[] noticeIds);
}
